package edu.sctu.practice.class01.renpingan.assign03.geometricobject;

/**
 * Created by Administrator on 2015/10/22.
 */
public class Rectangle extends GeometricObject {
    public int area;
    public int perimeter;
    public String color;

    public Rectangle(int height, int whight, String color) {
        super(height, whight, color);
    }

    @Override
    public float findArea() {
        area = whight * height;
        return area;
    }

    @Override
    public float findPerimeter() {
        perimeter = 2 * (whight + height);
        return perimeter;
    }
}
